#!/bin/bash

sum() 
{
	result=$[$1+$2]
	return $result
}

read -p "请输入第一个值：" a1
read -p "请输入第二个值：" a2

sum $a1 $a2

echo $?
